using System.Collections;
using UnityEngine;
using Voodoo.Pattern;

public class MenuView : MonoBehaviour
{
	public GameObject BoostRV;

	private void Start()
	{
	}

	private void OnEnable()
	{
		if (Preloader.ABTestConfig.RVStartBoost)
		{
			BoostRV.SetActive(value: false);
			StartCoroutine(CheckForButton());
		}
		else
		{
			BoostRV.SetActive(value: false);
		}
	}

	private void OnDisable()
	{
		StopAllCoroutines();
	}

	private IEnumerator CheckForButton()
	{
		while (true)
		{
			yield return new WaitForSeconds(0.5f);
			BoostRV.SetActive(value: true);
		}
	}

	public void OnClick_BoostGame()
	{
		SingletonMB<GameManager>.Instance.BoostLevel = true;
		SingletonMB<GameManager>.Instance.StartGame();
	}

	private void Update()
	{
	}
}
